# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'Cluster'
        db.create_table(u'cluster', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('description', self.gf('django.db.models.fields.CharField')(max_length=1024, null=True)),
            ('cpufamily', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)),
        ))
        db.send_create_signal(u'manager', ['Cluster'])

        # Adding model 'Server'
        db.create_table(u'server', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('host_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('ip', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('password', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('port', self.gf('django.db.models.fields.IntegerField')()),
            ('use_sshkey', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('cpu', self.gf('django.db.models.fields.IntegerField')()),
            ('mem', self.gf('django.db.models.fields.IntegerField')()),
            ('arch', self.gf('django.db.models.fields.CharField')(max_length=10)),
            ('os', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('hypervisor', self.gf('django.db.models.fields.CharField')(max_length=20)),
            ('memshare', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('cpu_type', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('qemu_version', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('powermanager', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('powertool', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
            ('cluster', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Cluster'], null=True, blank=True)),
        ))
        db.send_create_signal(u'manager', ['Server'])

        # Adding model 'ServerInterface'
        db.create_table(u'server_interface', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('link_base', self.gf('django.db.models.fields.IntegerField')()),
            ('type', self.gf('django.db.models.fields.IntegerField')()),
            ('vlan', self.gf('django.db.models.fields.CharField')(max_length=10, null=True, blank=True)),
            ('cluster', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Cluster'])),
        ))
        db.send_create_signal(u'manager', ['ServerInterface'])

        # Adding model 'Setting'
        db.create_table(u'setting', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('description', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
        ))
        db.send_create_signal(u'manager', ['Setting'])

        # Adding model 'Network'
        db.create_table(u'network', (
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255, primary_key=True)),
            ('cidr', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('address', self.gf('django.db.models.fields.IPAddressField')(max_length=15, null=True, blank=True)),
            ('netmask', self.gf('django.db.models.fields.IPAddressField')(max_length=15, null=True, blank=True)),
            ('dev', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True)),
            ('stp', self.gf('django.db.models.fields.CharField')(default='on', max_length=3)),
            ('delay', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('rundhcp', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('dhcp_start', self.gf('django.db.models.fields.IPAddressField')(max_length=15, null=True, blank=True)),
            ('dhcp_end', self.gf('django.db.models.fields.IPAddressField')(max_length=15, null=True, blank=True)),
            ('networktype', self.gf('django.db.models.fields.IntegerField')()),
            ('bridge', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
            ('bridge_interface', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['manager.ServerInterface'], unique=True, null=True, blank=True)),
            ('gateway', self.gf('django.db.models.fields.IPAddressField')(max_length=15, null=True, blank=True)),
            ('dns1', self.gf('django.db.models.fields.IPAddressField')(max_length=15, null=True, blank=True)),
            ('dns2', self.gf('django.db.models.fields.IPAddressField')(max_length=15, null=True, blank=True)),
            ('cluster', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Cluster'])),
        ))
        db.send_create_signal(u'manager', ['Network'])

        # Adding model 'Storage'
        db.create_table(u'storage', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('mount_point', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('status', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('host', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('username', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
            ('password', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True)),
            ('cluster', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Cluster'])),
        ))
        db.send_create_signal(u'manager', ['Storage'])

        # Adding model 'User'
        db.create_table(u'user', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('username', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('password', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('last_login', self.gf('django.db.models.fields.DateTimeField')()),
            ('last_login_ip', self.gf('django.db.models.fields.IPAddressField')(max_length=15, null=True)),
        ))
        db.send_create_signal(u'manager', ['User'])

        # Adding model 'Task'
        db.create_table(u'task', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('description', self.gf('django.db.models.fields.CharField')(max_length=1024, null=True)),
            ('host', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('ip', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('check_period', self.gf('django.db.models.fields.IntegerField')()),
            ('check_start', self.gf('django.db.models.fields.DateTimeField')(null=True)),
            ('check_end', self.gf('django.db.models.fields.DateTimeField')(null=True)),
            ('notify_period', self.gf('django.db.models.fields.IntegerField')(null=True)),
            ('notify_start', self.gf('django.db.models.fields.DateTimeField')(null=True)),
            ('notify_end', self.gf('django.db.models.fields.DateTimeField')(null=True)),
            ('notify_content', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('contacts', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('max_check_retry', self.gf('django.db.models.fields.IntegerField')()),
            ('check_interval', self.gf('django.db.models.fields.IntegerField')()),
            ('retry_interval', self.gf('django.db.models.fields.IntegerField')()),
            ('notify_interval', self.gf('django.db.models.fields.IntegerField')(null=True)),
            ('notify_enable', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('notifytype', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('active', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('status', self.gf('django.db.models.fields.IntegerField')()),
            ('last_check', self.gf('django.db.models.fields.DateTimeField')()),
            ('next_check', self.gf('django.db.models.fields.DateTimeField')()),
            ('command', self.gf('django.db.models.fields.CharField')(max_length=255)),
        ))
        db.send_create_signal(u'manager', ['Task'])

        # Adding model 'Notify'
        db.create_table(u'notify', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal(u'manager', ['Notify'])

        # Adding model 'BackupPolicy'
        db.create_table(u'backup_policy', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('backuptype', self.gf('django.db.models.fields.IntegerField')()),
            ('compress', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('compresslevel', self.gf('django.db.models.fields.IntegerField')()),
            ('remain', self.gf('django.db.models.fields.IntegerField')()),
            ('locationtype', self.gf('django.db.models.fields.IntegerField')()),
            ('localpath', self.gf('django.db.models.fields.CharField')(max_length=1024, null=True)),
            ('storage', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Storage'], null=True)),
            ('sftpusername', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)),
            ('sftphost', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)),
            ('sftppath', self.gf('django.db.models.fields.CharField')(max_length=1024, null=True)),
            ('sftppassword', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)),
        ))
        db.send_create_signal(u'manager', ['BackupPolicy'])

        # Adding model 'Image'
        db.create_table(u'image', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('description', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('disk_format', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('size', self.gf('django.db.models.fields.BigIntegerField')()),
            ('status', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('owner', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('os_type', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('host', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('is_64', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('is_desktop', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal(u'manager', ['Image'])

        # Adding model 'Snapshot'
        db.create_table(u'snapshot', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('instance', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Instance'])),
            ('uuid', self.gf('django.db.models.fields.CharField')(max_length=36)),
            ('status', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('description', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
        ))
        db.send_create_signal(u'manager', ['Snapshot'])

        # Adding model 'SecurityGroup'
        db.create_table(u'manager_securitygroup', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('description', self.gf('django.db.models.fields.CharField')(max_length=1024, null=True)),
        ))
        db.send_create_signal(u'manager', ['SecurityGroup'])

        # Adding model 'Instance'
        db.create_table(u'instances', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('description', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
            ('uuid', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('host', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Server'])),
            ('ip', self.gf('django.db.models.fields.IPAddressField')(max_length=15, null=True, blank=True)),
            ('image', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Image'], null=True, blank=True)),
            ('vcpu', self.gf('django.db.models.fields.IntegerField')(default=1)),
            ('memory', self.gf('django.db.models.fields.IntegerField')(default=1024)),
            ('xml', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('instance_path', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('status', self.gf('django.db.models.fields.CharField')(max_length=32)),
            ('power_status', self.gf('django.db.models.fields.IntegerField')()),
            ('needha', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
            ('graphics_type', self.gf('django.db.models.fields.CharField')(max_length=32, null=True, blank=True)),
            ('os_type', self.gf('django.db.models.fields.CharField')(max_length=32, null=True, blank=True)),
            ('disks', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.User'], null=True)),
            ('backup_policy', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['manager.BackupPolicy'], unique=True, null=True, blank=True)),
        ))
        db.send_create_signal(u'manager', ['Instance'])

        # Adding M2M table for field securitygroups on 'Instance'
        db.create_table(u'instances_securitygroups', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('instance', models.ForeignKey(orm[u'manager.instance'], null=False)),
            ('securitygroup', models.ForeignKey(orm[u'manager.securitygroup'], null=False))
        ))
        db.create_unique(u'instances_securitygroups', ['instance_id', 'securitygroup_id'])

        # Adding model 'Volume'
        db.create_table(u'volumes', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('description', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
            ('user_id', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
            ('snapshot_id', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
            ('mountpoint', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('size', self.gf('django.db.models.fields.IntegerField')()),
            ('host', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Server'])),
            ('instance', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Instance'])),
            ('cluster', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Cluster'])),
        ))
        db.send_create_signal(u'manager', ['Volume'])

        # Adding model 'Interface'
        db.create_table(u'interface', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('mac', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('model', self.gf('django.db.models.fields.CharField')(default='e1000', max_length=50)),
            ('network', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Network'], null=True, blank=True)),
            ('instance', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Instance'])),
            ('fixedip', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['manager.FixedIp'], unique=True, null=True, blank=True)),
        ))
        db.send_create_signal(u'manager', ['Interface'])

        # Adding model 'Backup'
        db.create_table(u'backup', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('instance', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Instance'], null=True)),
        ))
        db.send_create_signal(u'manager', ['Backup'])

        # Adding model 'SecurityGroupIngressRule'
        db.create_table(u'security_group_ingress_rule', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('protocol', self.gf('django.db.models.fields.CharField')(unique=True, max_length=10)),
            ('dstportstart', self.gf('django.db.models.fields.IntegerField')(default=-1)),
            ('dstportend', self.gf('django.db.models.fields.IntegerField')(default=-1)),
            ('srcmacaddr', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('srcipaddr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('srcipmask', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('dstipaddr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('dstipmask', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('srcipfrom', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('srcipto', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('dstipfrom', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('dstipto', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('srcportstart', self.gf('django.db.models.fields.IntegerField')(default=-1)),
            ('srcportend', self.gf('django.db.models.fields.IntegerField')(default=-1)),
            ('state', self.gf('django.db.models.fields.CharField')(max_length=20)),
            ('action', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('direction', self.gf('django.db.models.fields.CharField')(max_length=10)),
            ('priority', self.gf('django.db.models.fields.IntegerField')()),
            ('group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.SecurityGroup'])),
        ))
        db.send_create_signal(u'manager', ['SecurityGroupIngressRule'])

        # Adding model 'InstanceSecurityRule'
        db.create_table(u'instance_security_rule', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('protocol', self.gf('django.db.models.fields.CharField')(unique=True, max_length=10)),
            ('dstportstart', self.gf('django.db.models.fields.IntegerField')(default=-1)),
            ('dstportend', self.gf('django.db.models.fields.IntegerField')(default=-1)),
            ('srcmacaddr', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('srcipaddr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('srcipmask', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('dstipaddr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('dstipmask', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('srcipfrom', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('srcipto', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('dstipfrom', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('dstipto', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
            ('srcportstart', self.gf('django.db.models.fields.IntegerField')(default=-1)),
            ('srcportend', self.gf('django.db.models.fields.IntegerField')(default=-1)),
            ('state', self.gf('django.db.models.fields.CharField')(max_length=20)),
            ('action', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('direction', self.gf('django.db.models.fields.CharField')(max_length=10)),
            ('priority', self.gf('django.db.models.fields.IntegerField')()),
            ('instance', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Instance'])),
        ))
        db.send_create_signal(u'manager', ['InstanceSecurityRule'])

        # Adding model 'FixedIp'
        db.create_table(u'fixedip', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('address', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
            ('allocated', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('leased', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('host', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
            ('network', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['manager.Network'])),
        ))
        db.send_create_signal(u'manager', ['FixedIp'])

        # Adding model 'CeleryTaskDetail'
        db.create_table('celery_taskdetail', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('updated_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('task_id', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
            ('task_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('task_target', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('task_type', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('start_time', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
        ))
        db.send_create_signal(u'manager', ['CeleryTaskDetail'])


    def backwards(self, orm):
        # Deleting model 'Cluster'
        db.delete_table(u'cluster')

        # Deleting model 'Server'
        db.delete_table(u'server')

        # Deleting model 'ServerInterface'
        db.delete_table(u'server_interface')

        # Deleting model 'Setting'
        db.delete_table(u'setting')

        # Deleting model 'Network'
        db.delete_table(u'network')

        # Deleting model 'Storage'
        db.delete_table(u'storage')

        # Deleting model 'User'
        db.delete_table(u'user')

        # Deleting model 'Task'
        db.delete_table(u'task')

        # Deleting model 'Notify'
        db.delete_table(u'notify')

        # Deleting model 'BackupPolicy'
        db.delete_table(u'backup_policy')

        # Deleting model 'Image'
        db.delete_table(u'image')

        # Deleting model 'Snapshot'
        db.delete_table(u'snapshot')

        # Deleting model 'SecurityGroup'
        db.delete_table(u'manager_securitygroup')

        # Deleting model 'Instance'
        db.delete_table(u'instances')

        # Removing M2M table for field securitygroups on 'Instance'
        db.delete_table('instances_securitygroups')

        # Deleting model 'Volume'
        db.delete_table(u'volumes')

        # Deleting model 'Interface'
        db.delete_table(u'interface')

        # Deleting model 'Backup'
        db.delete_table(u'backup')

        # Deleting model 'SecurityGroupIngressRule'
        db.delete_table(u'security_group_ingress_rule')

        # Deleting model 'InstanceSecurityRule'
        db.delete_table(u'instance_security_rule')

        # Deleting model 'FixedIp'
        db.delete_table(u'fixedip')

        # Deleting model 'CeleryTaskDetail'
        db.delete_table('celery_taskdetail')


    models = {
        u'manager.backup': {
            'Meta': {'object_name': 'Backup', 'db_table': "u'backup'"},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'instance': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Instance']", 'null': 'True'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.backuppolicy': {
            'Meta': {'object_name': 'BackupPolicy', 'db_table': "u'backup_policy'"},
            'backuptype': ('django.db.models.fields.IntegerField', [], {}),
            'compress': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'compresslevel': ('django.db.models.fields.IntegerField', [], {}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'localpath': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True'}),
            'locationtype': ('django.db.models.fields.IntegerField', [], {}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'remain': ('django.db.models.fields.IntegerField', [], {}),
            'sftphost': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
            'sftppassword': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
            'sftppath': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True'}),
            'sftpusername': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
            'storage': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Storage']", 'null': 'True'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.celerytaskdetail': {
            'Meta': {'object_name': 'CeleryTaskDetail', 'db_table': "'celery_taskdetail'"},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'start_time': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'task_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
            'task_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'task_target': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'task_type': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.cluster': {
            'Meta': {'object_name': 'Cluster', 'db_table': "u'cluster'"},
            'cpufamily': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.fixedip': {
            'Meta': {'object_name': 'FixedIp', 'db_table': "u'fixedip'"},
            'address': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
            'allocated': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'host': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'leased': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'network': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Network']"}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.image': {
            'Meta': {'object_name': 'Image', 'db_table': "u'image'"},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'disk_format': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'host': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_64': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_desktop': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'os_type': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'owner': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'size': ('django.db.models.fields.BigIntegerField', [], {}),
            'status': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.instance': {
            'Meta': {'object_name': 'Instance', 'db_table': "u'instances'"},
            'backup_policy': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['manager.BackupPolicy']", 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'disks': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'graphics_type': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
            'host': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Server']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Image']", 'null': 'True', 'blank': 'True'}),
            'instance_path': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
            'memory': ('django.db.models.fields.IntegerField', [], {'default': '1024'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'needha': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
            'os_type': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
            'power_status': ('django.db.models.fields.IntegerField', [], {}),
            'securitygroups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['manager.SecurityGroup']", 'null': 'True', 'blank': 'True'}),
            'status': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.User']", 'null': 'True'}),
            'uuid': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'vcpu': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
            'xml': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.instancesecurityrule': {
            'Meta': {'object_name': 'InstanceSecurityRule', 'db_table': "u'instance_security_rule'"},
            'action': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'direction': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
            'dstipaddr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'dstipfrom': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'dstipmask': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'dstipto': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'dstportend': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
            'dstportstart': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'instance': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Instance']"}),
            'priority': ('django.db.models.fields.IntegerField', [], {}),
            'protocol': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '10'}),
            'srcipaddr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'srcipfrom': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'srcipmask': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'srcipto': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'srcmacaddr': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'srcportend': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
            'srcportstart': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
            'state': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.interface': {
            'Meta': {'object_name': 'Interface', 'db_table': "u'interface'"},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'fixedip': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['manager.FixedIp']", 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'instance': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Instance']"}),
            'mac': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'model': ('django.db.models.fields.CharField', [], {'default': "'e1000'", 'max_length': '50'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'network': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Network']", 'null': 'True', 'blank': 'True'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.network': {
            'Meta': {'object_name': 'Network', 'db_table': "u'network'"},
            'address': ('django.db.models.fields.IPAddressField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
            'bridge': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'bridge_interface': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['manager.ServerInterface']", 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'cidr': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'cluster': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Cluster']"}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'delay': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'dev': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
            'dhcp_end': ('django.db.models.fields.IPAddressField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
            'dhcp_start': ('django.db.models.fields.IPAddressField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
            'dns1': ('django.db.models.fields.IPAddressField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
            'dns2': ('django.db.models.fields.IPAddressField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
            'gateway': ('django.db.models.fields.IPAddressField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'}),
            'netmask': ('django.db.models.fields.IPAddressField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
            'networktype': ('django.db.models.fields.IntegerField', [], {}),
            'rundhcp': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'stp': ('django.db.models.fields.CharField', [], {'default': "'on'", 'max_length': '3'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.notify': {
            'Meta': {'object_name': 'Notify', 'db_table': "u'notify'"},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.securitygroup': {
            'Meta': {'object_name': 'SecurityGroup'},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.securitygroupingressrule': {
            'Meta': {'object_name': 'SecurityGroupIngressRule', 'db_table': "u'security_group_ingress_rule'"},
            'action': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'direction': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
            'dstipaddr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'dstipfrom': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'dstipmask': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'dstipto': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'dstportend': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
            'dstportstart': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
            'group': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.SecurityGroup']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'priority': ('django.db.models.fields.IntegerField', [], {}),
            'protocol': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '10'}),
            'srcipaddr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'srcipfrom': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'srcipmask': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'srcipto': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'srcmacaddr': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'srcportend': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
            'srcportstart': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
            'state': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.server': {
            'Meta': {'object_name': 'Server', 'db_table': "u'server'"},
            'arch': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
            'cluster': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Cluster']", 'null': 'True', 'blank': 'True'}),
            'cpu': ('django.db.models.fields.IntegerField', [], {}),
            'cpu_type': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'host_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'hypervisor': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
            'mem': ('django.db.models.fields.IntegerField', [], {}),
            'memshare': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'os': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'password': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'port': ('django.db.models.fields.IntegerField', [], {}),
            'powermanager': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'powertool': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
            'qemu_version': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'use_sshkey': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
        },
        u'manager.serverinterface': {
            'Meta': {'object_name': 'ServerInterface', 'db_table': "u'server_interface'"},
            'cluster': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Cluster']"}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'link_base': ('django.db.models.fields.IntegerField', [], {}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'type': ('django.db.models.fields.IntegerField', [], {}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'vlan': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'})
        },
        u'manager.setting': {
            'Meta': {'object_name': 'Setting', 'db_table': "u'setting'"},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'value': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        u'manager.snapshot': {
            'Meta': {'object_name': 'Snapshot', 'db_table': "u'snapshot'"},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'instance': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Instance']"}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'status': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'uuid': ('django.db.models.fields.CharField', [], {'max_length': '36'})
        },
        u'manager.storage': {
            'Meta': {'object_name': 'Storage', 'db_table': "u'storage'"},
            'cluster': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Cluster']"}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'host': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'mount_point': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'password': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
            'status': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'type': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'username': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
        },
        u'manager.task': {
            'Meta': {'object_name': 'Task', 'db_table': "u'task'"},
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'check_end': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
            'check_interval': ('django.db.models.fields.IntegerField', [], {}),
            'check_period': ('django.db.models.fields.IntegerField', [], {}),
            'check_start': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
            'command': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'contacts': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True'}),
            'host': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'ip': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'last_check': ('django.db.models.fields.DateTimeField', [], {}),
            'max_check_retry': ('django.db.models.fields.IntegerField', [], {}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'next_check': ('django.db.models.fields.DateTimeField', [], {}),
            'notify_content': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'notify_enable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'notify_end': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
            'notify_interval': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
            'notify_period': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
            'notify_start': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
            'notifytype': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'retry_interval': ('django.db.models.fields.IntegerField', [], {}),
            'status': ('django.db.models.fields.IntegerField', [], {}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        u'manager.user': {
            'Meta': {'object_name': 'User', 'db_table': "u'user'"},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'last_login': ('django.db.models.fields.DateTimeField', [], {}),
            'last_login_ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15', 'null': 'True'}),
            'password': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'username': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        u'manager.volume': {
            'Meta': {'object_name': 'Volume', 'db_table': "u'volumes'"},
            'cluster': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Cluster']"}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'host': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Server']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'instance': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['manager.Instance']"}),
            'mountpoint': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'size': ('django.db.models.fields.IntegerField', [], {}),
            'snapshot_id': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'user_id': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
        }
    }

    complete_apps = ['manager']